package com.hsgene.order.constants;

import com.hsgene.order.constants.v1.GenderType;

/**
 * @Description: 地服确认报告审核状态
 * @ProjectName: hdas-geneshop-server
 * @Package: com.hsgene.order.constants
 * @Author: FX
 * @CreateDate: 2018/11/8 9:41
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 */
public enum ReportAduitStatus {
    /**
     * 地服审核报告状态
     */
    PASS(1, "通过"), DIDNOTPASS(0, "未通过"),UNDEFINED(-2, "undefined");

    private final int code;

    private final String desc;

    ReportAduitStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static ReportAduitStatus getEnum(int code) {
        for(ReportAduitStatus reportAduitStatus:values()){
            if(code==reportAduitStatus.code){
               return  reportAduitStatus;
            }
        }
        return UNDEFINED;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
